<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="__PUBLIC__/admin/sncss/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/admin/sncss/js/jquery.js"></script>


</head>


<body>

	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
		<li><a>首页</a></li>
		<li><a>订单管理</a></li>
		<li><a>驳回订单记录列表</a></li>
		<li><a onClick="javascript:history.back(-1);">返回</a></li>
		</ul>
		</div>

		<div class="rightinfo">
		<div class="tools">
			<form id="form1" name="form1" method="get" action="{:U('/Home/Order/rejectorder_list')}">
				<input name="order_name" type="text" class="dfinput" placeholder="搜索自媒体/标题/主播编号" id="order_name" value="<?php echo $order_name;?>" />
				<input name="" type="submit" class="btn" value="搜索"/>
			</form>
		</div>
		<table class="tablelist">
			<thead>
			<tr>
				<th width="80">序号</th>
				<th width="140">自媒体名称</th>
				<th width="140">标题</th>
				<th width="70">接单主播</th>
				<th width="140">驳回时间</th>
				<th width="50">订单音频</th>
				<th>驳回理由</th>
				<th width="50">备注</th>
				</tr>
				</thead>
				<tbody>

	<foreach name='loglist' item='v'>
		<tr>
			<td>{$v.relate_id}</td>
			<td>{$v.media_name}</td>
			<td><a href="{:U('/Home/Order/order_edit',array('oid'=>$v['relate_id']))}" class="tablelink" title="<?php echo $v['title'];?>"><?php echo mb_strlen($v['title']) > 10 ? mb_substr($v['title'],0,10, 'utf-8').'...' : $v['title'];?></a></td>
			<td>{$v.user_id}</td>
			<td>{$v.date|date="Y-m-d H:i:s",###}</td>
			<td>
			<a href="http://audio.heardtech.com/{$v.audio_url}">MP3</a>
			<notempty name="v.wav_url"><a href="http://audio.heardtech.com/{$v.wav_url}">&nbsp;&nbsp;&nbsp;WAV</a></notempty>
			</td>
			<td>{$v.note}</td>
			<empty name="v.message">
			<td><a href="javascript:void(0);" onclick="ordermessage({$v.id})" class="tablelink">备注</a></td>
			<else />
			<td>{$v.message}</td>
			</empty>

		</tr>
	</foreach>

				</tbody>
		</table>
		<style>.pages a,.pages span {
		display:inline-block;
		padding:2px 5px;
		margin:0 1px;
		border:1px solid #f0f0f0;
		-webkit-border-radius:3px;
		-moz-border-radius:3px;
		border-radius:3px;
}
.pages a,.pages li {
		display:inline-block;
		list-style: none;
		text-decoration:none; color:#58A0D3;
}
.pages a.first,.pages a.prev,.pages a.next,.pages a.end{
		margin:0;
}
.pages a:hover{
		border-color:#50A8E6;
}
.pages span.current{
		background:#50A8E6;
		color:#FFF;
		font-weight:700;
		border-color:#50A8E6;
}</style>

	 <div class="pages"><br />

												<div align="right">{$page}
												</div>
	 </div>

		</div>

		<script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	</script>

</body>
<script src="__PUBLIC__/js/jquery1.8.3.js"></script>
<script src="__PUBLIC__/layer/layer.js"></script>
<script type="text/javascript">
function ordermessage(rid){
		layer.open({title: false, type: 1, area: ['600px', '300px'], //宽高
				content: '<div class="mainlist"><form id="form2" name="form2" method="post" action="/Home/Order/rejectorder_message" onsubmit="return form2_submit();">'
				+'<br><br><textarea class="textinput" name="ordermessage" id="ordermessage"></textarea>'
				+'<input name="rid"  type="hidden" class="dfinput" value="'+rid+'" />'
				+'<input name="p"  type="hidden" class="dfinput" value="'+<?php echo $p;?>+'" />'
				+'<br><br><input type="submit" class="btn" value="添加备注"/></form></div>'
		});
}
</script>
<script type="text/javascript">

		function form2_submit(){
				var ordermessage= $('#ordermessage').val();
				if(ordermessage.length==0){
						layer.msg('必须填写备注');return false;
						// alert('必须填写理由');return false;
				}
		}

	function layerload(){
		layer.load(1, {shade: [0.8, '#393D49']});
	}
</script>
</html>
